package beans.saomiao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

//表明是bean管理的显示层
@Controller
public class UserController {
	//autowired表明是UserController bean中创建的service bean
	@Autowired 
	private UserService service;
	
	public  void serviceLog () {
		System.out.println("service log" + this.service);
	}
}
